package com.treasure.mall.biz.service.core.live;

import com.treasure.mall.biz.base.SearchableCrudService;
import com.treasure.mall.biz.entity.live.LiveRoomFanPO;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/6/13
 */
public interface LiveRoomFanService extends SearchableCrudService<LiveRoomFanPO, Long> {
    @Transactional
    void delete(Long roomId, Long userId);

    LiveRoomFanPO findByRoomAndUser(Long roomId, Long userId);

    boolean countByRoomIdAndUserId(Long roomId, Long userId);
}
